<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml" xmlns:iftg="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${invoice.id}" type="hidden">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">类型：</label>
                            <div class="col-sm-8">
                                <iftg:select id="type" name="type" dicType="invoice_type"
                                             data-placeholder="选择类型" class="form-control chosen-select"
                                             tabindex="2" style="width: 100%" th:value="${invoice.type}">
                                    <option value="">选择类型</option>
                                </iftg:select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">发票抬头：</label>
                            <div class="col-sm-8">
                                <input id="invoiceRise" name="invoiceRise" th:value="${invoice.invoiceRise}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">税号：</label>
                            <div class="col-sm-8">
                                <input id="dutyParagraph" name="dutyParagraph" th:value="${invoice.dutyParagraph}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">单位地址：</label>
                            <div class="col-sm-8">
                                <input id="address" name="address" th:value="${invoice.address}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">电子邮箱：</label>
                            <div class="col-sm-8">
                                <input id="email" name="email" th:value="${invoice.email}" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">开户银行：</label>
                            <div class="col-sm-8">
                                <input id="accountBank" name="accountBank" th:value="${invoice.accountBank}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">银行账号：</label>
                            <div class="col-sm-8">
                                <input id="accountCode" name="accountCode" th:value="${invoice.accountCode}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否默认：</label>
                            <div class="col-sm-8">
                                <iftg:select id="defaultIs" name="defaultIs" dicType="isDefault_type"
                                             data-placeholder="选择" class="form-control chosen-select"
                                             tabindex="2" style="width: 100%" th:value="${invoice.defaultIs}">
                                    <option value="">选择</option>
                                </iftg:select>
                            </div>
                        </div>
                        <div class="form-group" style="display: none">
                            <label class="col-sm-3 control-label">创建时间：</label>
                            <div class="col-sm-8">
                                <input id="createDate" name="createDate"
                                       th:value="${invoice.createDate} eq null ? '' : ${#dates.format(invoice.createDate, 'yyyy-MM-dd HH:mm:ss')}"
                                       onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group" style="display: none">
                            <label class="col-sm-3 control-label">创建者：</label>
                            <div class="col-sm-8">
                                <input id="creator" name="creator" th:value="${invoice.creator}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/invoice/edit.js">
</script>
</body>
</html>
